package com.iweb.commons.utils;

import javax.servlet.ServletContext;

/**
 * @author: jack
 * @date: 2022-08-04 0004
 * @ApiNOTE:
 */
public class BeanUtil {

  // 从 application 中获取
  public static <T> T getBean(ServletContext application, String name) {
    return (T) application.getAttribute(name);
  }

}
